package com.zwd.deep.mapper;

import com.zwd.deep.entity.po.Diagnoses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zwd.deep.entity.vo.DiagnosesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 诊断记录表 Mapper 接口
 * </p>
 *
 * @author zwd
 * @since 2025-02-12
 */
@Mapper
public interface DiagnosesMapper extends BaseMapper<Diagnoses> {

    @Select("SELECT * FROM diagnoses WHERE user_id = #{userId}")
    List<DiagnosesVo> selectListByUserId(Integer userId);
}
